//
//  BaseClassViewController.m
//  NeteaseNews
//
//  Created by liutaifeng on 16/4/13.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "BaseClassViewController.h"
#import "IsNight.h"
@interface BaseClassViewController ()

@end

@implementation BaseClassViewController

- (void)viewWillAppear:(BOOL)animated {
    if ([IsNight nowIsNight]) {
        self.view.backgroundColor = [IsNight nightColor];
    }
    else {
        self.view.backgroundColor = [UIColor whiteColor];
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
